package com.jindy.module.receiptorder.service.impl;

import java.util.List;

import com.jindy.module.receiptorder.domain.ReceiptOrderProduct;
import com.jindy.module.receiptorder.mapper.ReceiptOrderProductMapper;
import com.jindy.module.receiptorder.service.IReceiptOrderProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【入库单产品】Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-12
 */
@Service
public class ReceiptOrderProductServiceImpl implements IReceiptOrderProductService
{
    @Autowired
    private ReceiptOrderProductMapper receiptOrderProductMapper;

    /**
     * 查询【入库订单产品】
     *
     * @param id 【入库订单产品】主键
     * @return 【入库订单产品】
     */
    @Override
    public ReceiptOrderProduct selectReceiptOrderProductById(Long id)
    {
        return receiptOrderProductMapper.selectReceiptOrderProductById(id);
    }

    /**
     * 查询【入库订单产品】列表
     *
     * @param receiptOrderProduct 【入库订单产品】
     * @return 【入库订单产品】
     */
    @Override
    public List<ReceiptOrderProduct> selectReceiptOrderProductList(ReceiptOrderProduct receiptOrderProduct)
    {
        return receiptOrderProductMapper.selectReceiptOrderProductList(receiptOrderProduct);
    }

    /**
     * 新增【入库订单产品】
     *
     * @param receiptOrderProduct 【入库订单产品】
     * @return 结果
     */
    @Override
    public int insertReceiptOrderProduct(ReceiptOrderProduct receiptOrderProduct)
    {
        return receiptOrderProductMapper.insertReceiptOrderProduct(receiptOrderProduct);
    }

    /**
     * 修改【入库订单产品】
     *
     * @param receiptOrderProduct 【入库订单产品】
     * @return 结果
     */
    @Override
    public int updateReceiptOrderProduct(ReceiptOrderProduct receiptOrderProduct)
    {
        return receiptOrderProductMapper.updateReceiptOrderProduct(receiptOrderProduct);
    }

    /**
     * 批量删除【入库订单产品】
     *
     * @param ids 需要删除的【入库订单产品】主键
     * @return 结果
     */
    @Override
    public int deleteReceiptOrderProductByIds(Long[] ids)
    {
        return receiptOrderProductMapper.deleteReceiptOrderProductByIds(ids);
    }

    /**
     * 删除【入库订单产品】信息
     *
     * @param id 【入库订单产品】主键
     * @return 结果
     */
    @Override
    public int deleteReceiptOrderProductById(Long id)
    {
        return receiptOrderProductMapper.deleteReceiptOrderProductById(id);
    }
}
